package com.huluobo.a2203kotlinshopping.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2203kotlinshopping.R
import com.huluobo.base.bean.OrderBean

/**
 *  Created by LC on 2024/7/2.
 */
class OrderAdapter(list: MutableList<OrderBean>) :
    BaseQuickAdapter<OrderBean, BaseViewHolder>(R.layout.item_order, list) {
    override fun convert(helper: BaseViewHolder, item: OrderBean) {
        helper.setText(R.id.item_order_desc, item.goods_desc)
        helper.setText(R.id.item_order_price, "${item.goods_default_price * item.count}元")
        helper.setText(R.id.item_order_count, "x${item.count}")
    }
}